package com.aizhixin.lab.course.course.entity;

import com.aizhixin.lab.common.entity.AbstractStringEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity(name = "c_course")
@ToString
public class Course extends AbstractStringEntity {
    @Column(name = "template_id")
    @Getter
    @Setter
    private Long templateId;
    @Column(name = "parent_id")
    @Getter
    @Setter
    private String parentId;
    @Column(name = "name")
    @Getter
    @Setter
    private String name;
    @Column(name = "type")
    @Getter
    @Setter
    private Integer type;//10:理论课 20:实验课
    @Column(name = "class_hour")
    @Getter
    @Setter
    private Integer classHour;//学时
    @Column(name = "count_chapter")
    @Getter
    @Setter
    private Integer countChapter;
    @Column(name = "count_section")
    @Getter
    @Setter
    private Integer countSection;
    @Column(name = "view_count_chapter")
    @Getter
    @Setter
    private Integer viewCountChapter;
    @Column(name = "view_count_section")
    @Getter
    @Setter
    private Integer viewCountSection;
    @Column(name = "image")
    @Getter
    @Setter
    private String image;
    @Column(name = "intro")
    @Getter
    @Setter
    private String intro;
    @Column(name = "is_publish")
    @Getter
    @Setter
    private Boolean isPublish;
    @Column(name = "is_archive")
    @Getter
    @Setter
    private Boolean isArchive;
    @Column(name = "is_default_ex")
    @Getter
    @Setter
    private Integer isDefaultEx=0;
    @Column(name = "vm_name")
    @Getter
    @Setter
    private String vmName;
    @Column(name = "vm_num")
    @Getter
    @Setter
    private Integer vmNum;
}
